package cn.itsource.org.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department {
    //主键
    private Long id;
    //部门编号
    private String sn;
    //部门名称
    private String name;
    //部门的上级分类层级id
    private String dirPath;
    //部门状态，0正常，1禁用
    private Integer state;


    //部门管理员，关联Employee表id
    private Long manager_id;
    private Employee manager;
    //上级部门
    private Long parent_id;
    private Department parent;
    private List<Department> children;
}
